package com.wl.dzt.redis;

import com.wl.dzt.sys.util.ResourceUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/6/22/022
 * @description RedisKey 缓存时间
 */
public class RedisKeyMaxActive {

    /**
     * 默认最大缓存时间,单位秒
     */
    public static final Integer DEFAULT_MAX_ACTIVE= 600;

    private static Map<String,String> keys = new HashMap<>();

    static{
        keys.putAll(ResourceUtils.loadProperties("redis-keys-active-time.properties"));
    }

    public static Map<String,String> getKeys(){
        return keys;
    }
}
